local Enum = {}

function Enum.createEnum(tbl, startIndex)
	if(type(tbl) ~= "table") then
		GameLog.Error("Enum.createEnum param is not a table!")
		return nil
	end

	local enumTbl = {}
	local enumIndex = startIndex or 0

	for i,v in ipairs(tbl) do 
		enumTbl[v] = enumIndex + i
	end
	return enumTbl
end

return Enum